package demo3.pellet;

import demo3.Beverage;
import demo3.Condiment;

/**
 * @author 24岁没牵过女人的手 日期：2023/7/6 16:03 文件描述：
 */
public class Soy extends Condiment {

  Beverage beverage;

  public Soy(Beverage beverage) {
    this.beverage = beverage;
  }

  @Override
  public double cost() {
    return beverage.cost() + 0.5;
  }

  @Override
  public String getDescription() {
    return beverage.getDescription() + ", Soy";
  }
}
